package com.code.day10.reflectss;

import lombok.Getter;
import lombok.Setter;

public class Student {
    @Getter
    @Setter
    private String name;
    private int age;

    public Student(){

    }
    public Student(String name, int age){
        this.name = name;
        this.age = age;
    }
    public void study(){
        System.out.println(name + " is studying");
    }
    public void eat(){
        System.out.println(name +" is eating");
    }
    @Override
    public String toString() {
        return "Student [name=" + name + ", age=" + age + "]";
    }
}
